import requet from "../utils/requet.js";

/* 当前登录用户钱包余额 */
export function getBalance(params) {
  return requet({
    url: "/wallet/info",
    method: "GET",
    params
  });
}
/* 支付配置信息 */
export function paymentInit(params) {
  return requet({
    url: "/payment/config",
    method: "GET",
    params
  });
}
/* 在线充值提交 */
export function onlineDeposit(data) {
  return requet({
    url: "/payment/online-deposit",
    method: "POST",
    data
  });
}
/* 线下充值提交 */
export function offlineDeposit(data) {
  return requet({
    url: "/payment/offline-deposit",
    method: "POST",
    data
  });
}
/* 银行卡添加 */
export function addBankcard(data) {
  return requet({
    url: "/payment/withdraw-card-add",
    method: "POST",
    data
  });
}
/* 银行卡删除 */
export function removeBankcard(data) {
  return requet({
    url: "/payment/withdraw-card-remove",
    method: "DELETE",
    data
  });
}
/* 银行卡列表 */
export function bankcardList(params) {
  return requet({
    url: "/payment/withdraw-card-list",
    method: "GET",
    params
  });
}
/* 提现密码修改 */
export function withdrawSetPsw(data) {
  return requet({
    url: "/payment/withdraw-password-set",
    method: "POST",
    data
  });
}
/* 提现预览 */
export function withdrawPreview(data) {
  return requet({
    url: "/payment/withdraw-preview",
    method: "POST",
    data
  });
}
/* 提现提交 */
export function withdrawPost(data) {
  return requet({
    url: "/payment/withdraw-submit",
    method: "POST",
    data
  });
}

/* 用户提现金额信息 */
export function getPaymentWithdrawAmountInfo(data) {
  return requet({
    url: "/payment/withdraw-amount-info",
    method: "GET",
    data
  });
}

/* 图片上传 */
export function postUploadPicture(data) {
  return requet({
    url: "/common/upload-picture",
    method: "POST",
    data
  });
}
